From: shin@whirlwind.seas.ucla.edu (Daniel D Shin)
Subject: need help with serial communication using c++
Sender: news@seas.ucla.edu (News Daemon)
Message-ID: <DoLBFr.Hvp@seas.ucla.edu>
Date: Wed, 20 Mar 1996 23:47:51 GMT
X-Nntp-Posting-Host: whirlwind.seas.ucla.edu
Organization: School of Engineering & Applied Science, UCLA.
X-Newsreader: TIN [version 1.2 PL2]
Can someone out there help me how to write serial communication program using c language? Specifically, I need to translate a qbasic program into c. The basic program is written as :
OPEN "COM1:9600,e,7,1,CS,DS" FOR RANDOM AS #1
PRINT #1, "CH",cn
INPUT #1, dummy
CLOSE #1
The program must run under DOS environment.
Thank you for your time, and any help would be greatly appreciated.